using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_SysBaseImpExpMap : EntityTypeConfiguration<t_SysBaseImpExp>
    {
        public t_SysBaseImpExpMap()
        {
            // Primary Key
            this.HasKey(t => t.FInterID);

            // Properties
            this.Property(t => t.FInterID)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.FName)
                .IsRequired()
                .HasMaxLength(80);

            this.Property(t => t.FName_Cht)
                .HasMaxLength(80);

            this.Property(t => t.FName_en)
                .HasMaxLength(80);

            this.Property(t => t.FMaster)
                .IsRequired()
                .HasMaxLength(80);

            this.Property(t => t.FMasterAction)
                .HasMaxLength(255);

            this.Property(t => t.FMasterUserKey)
                .HasMaxLength(255);

            this.Property(t => t.FSlave)
                .HasMaxLength(80);

            this.Property(t => t.FSlaveAction)
                .HasMaxLength(255);

            this.Property(t => t.FSlaveUserKey)
                .HasMaxLength(80);

            this.Property(t => t.FBaseNeed)
                .HasMaxLength(80);

            // Table & Column Mappings
            this.ToTable("t_SysBaseImpExp");
            this.Property(t => t.FInterID).HasColumnName("FInterID");
            this.Property(t => t.FName).HasColumnName("FName");
            this.Property(t => t.FName_Cht).HasColumnName("FName_Cht");
            this.Property(t => t.FName_en).HasColumnName("FName_en");
            this.Property(t => t.FMaster).HasColumnName("FMaster");
            this.Property(t => t.FMasterAction).HasColumnName("FMasterAction");
            this.Property(t => t.FMasterUserKey).HasColumnName("FMasterUserKey");
            this.Property(t => t.FSlave).HasColumnName("FSlave");
            this.Property(t => t.FSlaveAction).HasColumnName("FSlaveAction");
            this.Property(t => t.FSlaveUserKey).HasColumnName("FSlaveUserKey");
            this.Property(t => t.FBaseNeed).HasColumnName("FBaseNeed");
            this.Property(t => t.FSysFlag).HasColumnName("FSysFlag");
        }
    }
}
